/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package communicator.message;

import base.TrackNode;
import base.TrackNode.Echo;
import base.WaveEnvironment;

/**
 * Thong diep gui echo tu track node hien thoi den track cha tren may khac
 * @author Tue
 */
public class MsgEcho extends Message{
    private String fromTrackAddress;//Dia chi cua track gui echo di
    private String toTrackAddress;//Dia chi track nhan echo (cai nay co the khong can thiet)
    private TrackNode.Echo echo;//Echo se duoc gui di
    private WaveEnvironment waveEnv;//Wave environment
    public MsgEcho(String fromTrackAddress, String toTrackAddress, Echo echo, WaveEnvironment waveEnv) {
        this.fromTrackAddress = fromTrackAddress;
        this.toTrackAddress = toTrackAddress;
        this.echo = echo;
        this.waveEnv = waveEnv;
    }

    public Echo getEcho() {
        return echo;
    }

    public String getFromTrackAddress() {
        return fromTrackAddress;
    }

    public String getToTrackAddress() {
        return toTrackAddress;
    }

    public WaveEnvironment getWaveEnv(){
        return waveEnv;
    }
    
}
